package com.cookor.poi.modules.mx.service;

import com.cookor.poi.common.persistence.DataEntity;
import com.cookor.poi.common.persistence.Page;
import com.cookor.poi.common.service.CrudService;
import com.cookor.poi.modules.mx.dao.TMxOrderDao;
import com.cookor.poi.modules.mx.entity.TMxOrder;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true)
public class TMxOrderService extends CrudService<TMxOrderDao, TMxOrder> {
  public TMxOrder get(String id) {
    return (TMxOrder)super.get(id);
  }
  
  public List<TMxOrder> findList(TMxOrder tMxOrder) {
    return super.findList( tMxOrder);
  }
  
  public Page<TMxOrder> findPage(Page<TMxOrder> page, TMxOrder tMxOrder) {
    return super.findPage(page,  tMxOrder);
  }
  
  @Transactional(readOnly = false)
  public void save(TMxOrder tMxOrder) {
    super.save( tMxOrder);
  }
  
  @Transactional(readOnly = false)
  public void delete(TMxOrder tMxOrder) {
    super.delete( tMxOrder);
  }
}
